.class Lcom/netease/newsreader/util/NeteaseHttpClient$3;
.super Ljava/lang/Object;
.source "NeteaseHttpClient.java"

# interfaces
.implements Lorg/apache/http/client/HttpRequestRetryHandler;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/util/NeteaseHttpClient;->getHttpClient(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/impl/client/DefaultHttpClient;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .prologue
    .line 166
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 1
    return-void
.end method


# virtual methods
.method public retryRequest(Ljava/io/IOException;ILorg/apache/http/protocol/HttpContext;)Z
    .locals 4
    .parameter "exception"
    .parameter "executionCount"
    .parameter "context"

    .prologue
    .line 169
    const/4 v2, 0x1

    .line 170
    .local v2, rtn:Z
    invoke-static {}, Lcom/netease/newsreader/util/NeteaseHttpClient;->access$0()I

    move-result v3

    if-le p2, v3, :cond_0

    .line 171
    const/4 v2, 0x0

    .line 181
    :goto_0
    return v2

    .line 172
    :cond_0
    instance-of v3, p1, Lorg/apache/http/NoHttpResponseException;

    if-nez v3, :cond_1

    .line 173
    instance-of v3, p1, Ljava/net/SocketTimeoutException;

    if-nez v3, :cond_1

    .line 174
    instance-of v3, p1, Lorg/apache/http/conn/ConnectTimeoutException;

    if-eqz v3, :cond_2

    .line 175
    :cond_1
    const/4 v2, 0x1

    goto :goto_0

    .line 177
    :cond_2
    const-string v3, "http.request"

    invoke-interface {p3, v3}, Lorg/apache/http/protocol/HttpContext;->getAttribute(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lorg/apache/http/HttpRequest;

    .line 178
    .local v1, request:Lorg/apache/http/HttpRequest;
    instance-of v3, v1, Lorg/apache/http/HttpEntityEnclosingRequest;

    if-eqz v3, :cond_3

    const/4 v0, 0x0

    .line 179
    .local v0, idempotent:Z
    :goto_1
    move v2, v0

    goto :goto_0

    .line 178
    .end local v0           #idempotent:Z
    :cond_3
    const/4 v0, 0x1

    goto :goto_1
.end method
